﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: WorkCategoryEntity.cs
// 修改时间：2020-9-8 10:40:14
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：WorkCategory 的实体类.
	/// </summary>
	[Table("WorkCategory")]
	public partial class WorkCategoryEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// 自定义表单类别ID(主键)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private int? _parentID = 0;
		/// <summary>
		/// 父类别ID
		/// </summary>
		[Column("ParentID",TypeName="int")]
		public int? ParentID
		{
			get {return _parentID;}
			set {_parentID = value;}
		}
		
		private System.String _name = string.Empty;
		/// <summary>
		/// 类别名称
		/// </summary>
		[Column("Name",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Name
		{
			get {return _name;}
			set {_name = value;}
		}
		
		private System.String _description = string.Empty;
		/// <summary>
		/// 描述
		/// </summary>
		[Column("Description",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Description
		{
			get {return _description;}
			set {_description = value;}
		}
		
		private int? _orderSort = 0;
		/// <summary>
		/// 排序ID
		/// </summary>
		[Column("OrderSort",TypeName="int")]
		public int? OrderSort
		{
			get {return _orderSort;}
			set {_orderSort = value;}
		}
		
		private int? _flowID = 0;
		/// <summary>
		/// 流程ID
		/// </summary>
		[Column("FlowID",TypeName="int")]
		public int? FlowID
		{
			get {return _flowID;}
			set {_flowID = value;}
		}
		
		#endregion
	}
}
